The problem may be with the telnet program. It is a graphical program instead
of a command line program, and may not run properly under a netcat session.
You could get a "console" telnet program or emulate telnet with netcat.