tmx2map : little-endian fwrite