Correctly sanitize password. Closes #3553.
Notices