Fixed bug: unicode was passed in hashlib. Also, fixed model unicode methods.