Fixing encoding issue for Python 3.  Improve test for get-password-data.