Removed unneeded system endianness tests, changed to use big-endian data encoding.