Switch to netcat from telnet.

Telnet does not cleanly handle UTF-8 and is generally more difficult to script.