Clean unused code.

split_messages function is not used anymore
because we do pass a structure instead of
a string. This is also the reason why \0x
are not needed anymore to end the message.