escape backslashes in the class role
Merge pull request #504 from xabbuh/class-role-fix

escape backslashes in the class role