fixed hamming byte encoding issue