Restrict what characters are allowed in class words

Only apply the restrictions to *new* class words.
Clean up old class words before handing them off to the portal.