Working with both client and telnet now. However, I'll have to look into encoding again.
Problems problems problems...
It's all fucked.