added hashing for utf8 strings