Fixed byte order problem on little endian platforms that support Unsafe but not unaligned memory access.