Fix #62479 Allow odd characters in passwords

Currently, spaces and backslashes aren't allowed in passwords.
This patch allows for both to be usable.