Remove characters not allowed in names.