Issue #3397007 by ELC: Dependency on password generator can lead to invalid usernames (The username contains an illegal character.)
Closes #3397007