Force Unicode to avoid error from io.StringIO

This error can happen on Python 2.7.