Fixed issue with 'encoding' attribute on io.StringIO (Python 3)