Use socat instead of nc.

nc is demonstrably broken on Ubuntu Trusty.  Just using the very simple
'nc-listen' alias, and 'nc localhost 8988', has a catastrophic bug --
hanging deterministically after two requests.

Worse, it doesn't even have a version flag.

I might regret trying socat... if this doesn't work, use Python.