Xml cleanup

PEP 8 sanitized, test_junitxml expand to handle the variation between python versions and whether byte/unicode strings are used for errors.  I was torned were to put the contents of the _xml_util.py  It isn't really intended to be a general XML string sanitizer, but if someone ever needs other xml formats, might be useful.