Fix unicode support on Python 2.7.