How about using more than one character to separate the messages or use a proper serialization library to serialize your objects for you.

// Json