Rewrite Telnet packet parser