Restrict allowed characters in names.