updated hasher to correct bytearr-string