force more things to bytes before hashing
use text_type instead of unicode