Fixed encoding for little-endian machines (like linux and mac os x)