Refactoring password functions to use unicodePasswd()