fixed low/big endian conversion