fix endian conversion in msgpack