Revert to using StringIO. In Trac 0.10, unicode strings are used,
which cStringIO can't handle.
Alternatively, one could convert all non-ASCII chars to HTML
entities. On the other hand, this should be done by Trac itself, if
Powered by Trac 0.12.5
By Edgewall Software.
Karlsruhe Institut of TechnologyInstitute for Program Structures and Data OrganizationiChair Prof. Walter F. Tichy