Sanitizing terms into valid class names

Just a rough draft, for testing purposes ...