Endian autodetection