Input stream UTF-16 big endian mixed up bytes

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