Input stream with UTF-16 and big endian

The bytes in an input stream with UTF-16 encoding and big endian got mixed up.