When the user's name were set without any numbers and letters, the replace invalid characters function will change the name to null and cause an api reply error.
So I am wondering whether it is necessary to automatically set a fixed name like "user" when a name is set to null due to iinvalid characters.