validate decoded strings
move unsigned-byte to decoding_utils