corrected encoding in hashing