Exclamation mark and special characters in usernames

I would edit the script to look for those and replace them with a legal character like _ or -. I think it’ll just strip them. You can look at the code of the username suggested.