fix hasher for unicode data