Sanitize class names