Remove nasty characters from the class name.