This problem has occurred for me before. Just make sure that you don't accidentally press the space-bar before and after you finish typing your name, and make sure you don't press return after entering your name.
Also, when this message comes up, you'll unfortunately have to re-create your character all over again if you don't want it to pop up a second time.
If none of this works, I will be happy to offer more suggestions C: