fix funny business with converting buffers to strings before hashing