fix telnet to reliably enter line mode