Python 2 getpass on Windows does not accept unicode, even when containing on ASCII characters. Related #190807. Backport of b5a9166f from master