fixed #134: hashlib crashes when fed unicode strings, encoding needed