Improved handling of spaces in usernames and passwords.