After wading through the irclib/gevent patching sockets mess, here's the real unicode fix.