Authentication fails when username contains specific characters.