Fix xunit when writing unicode to stdout and stderr.