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