Normalize passwords using str().

Got a crash report where the user supposedly used UTF-8 in password.