UDP transport and endianness fixes