When possible always use a runtime check for endian.
iOS buildfix.
Merge pull request #100 from unknownbrackets/endian

Correct endian detection for UTF-16 and iOS buildfix