tweaks passwordToString logic