Hello Matthew,
>Is this a bug in the communcation?
TCP doesn't care about the kind of data you transmit - if you send 17
characters, this translates into a byte sequence that will be transmitted
unchanged to the other side, and that can be decoded into the same 17
characters after reception. If anything goes wrong with this, it will be
your own encoding/decoding code making the mistake.
If you post some code that reproduces the problem, we might have a look -
without that it's impossible to say what causes the problem.
Oliver Sturm

Signature
http://www.sturmnet.org/blog