UTF-8 issues

Fixed the Exception thrown by bcrypt that objects needed to be encoded before hashing.