not saying your wrong and the documentation is definitely not very good, but KAREL does do binary data over sockets. UF mode is needed as you write.
Done it many times.
For converting endian you can use SWAP_REAL, SWAP_INT and others.
If you have errors, post them.