Handle Unicode properly on Python 2.7