Correct endian detection for UTF-16 and iOS buildfix

Nothing major.

-[Unknown]