validate bytes in strings, move unsigned-byte function