swap bytes for binary file if big endian