fix unicode issue in hash