Refs #38, fix an encoding issue in gevent.core for PY3