Here's the current way of checking:
https://github.com/EQEmu/Server/blob.../bot.cpp#L1533
The old way had the 'check' coded..but, was using bad methodology...
https://github.com/EQEmu/Server/blob.../bot.cpp#L1522
In addition to basically allowing any characters in the name, it only failed if the last character was !isalpha() or '_'