Fix bug where hex passwords were not being stored as strings