Are you sure you don't have a #gag or broken #sub in your client? Can you repro this with straight telnet?
So long, and thanks for all the fish!