py3 bug, encode strings before hashing