Fix #692: UnicodeDecodeError in xunit when capturing stdout, stderr

Enable xunit to output Unicode characters to an XML report
when catured stdout and/or stderr contain Unicode characters.