when i use --xunit-output i get UnicodeDecodeError in StringIO.getvalue

because i have 1 unicode string in xml elements coming from

xunit_output.py 93: tc.setAttribute("name", u'| %s |' % u' | '.join(outline.values()))

I think the better way to go is to use unicode strings everywhere instead of converting every string in utf-8 . But this error can be solved by converting this line to utf-8 too.