Substitute special characters in resource class

Everything except alphanumeric characters and an underscore needs to
be replaced by an underscore.

Closes-issue: https://mirantis.jira.com/browse/PRODX-9565
Change-Id: Icb30abb9a4f147d8aeddd99908ec29e8ccd63ac6
(cherry picked from commit b843614d884eed648212889cb70eb4154b60bb43)
(cherry picked from commit d22afcb4c9b58705ef48ec805a4eb50cad58c128)
(cherry picked from commit a3f29922668b39ccaa9f5ef5631cc232fc0308d3)
1 file changed