Fixed #22364. Sanitized getpass input in changepassword

Python 2 getpass on Windows does not accept unicode, even
when containing on ASCII characters.

Related #19807.  The tests for it in 02e5909 seem to force a byte string, so unsure if additional testing is required here.

Verified fix on Windows 7.  All tests pass with default runtests.py command.