Fix encoding problem.  Also change asserts for test_get_password_data to account for different ordering of JSON data in output.