junit.xml can't be written if sysout contains non-ASCII text.
Fixed python3 incompatibility. Added test to repro issue on 2.7
Merge pull request #198 from rescale/master

junit.xml can't be written if sysout contains non-ASCII text