Test result xml escaping

If system-err or system-out contain characters which have a special meaning in XML (ampersand for example) then the generated test result XML will not be well-formed and result in parse errors when parsed.