Using escape() in the generated output

Thought this might be of interest to you!  I'm using this excellent scripts of yours, but was missing the character escaping, as sometimes a test with special characters in the name or the assertion message would break the build on Jenkins, when it came time to import the generated XML output ...  (Jenkins here, but really any parser would choke on the unescaped output)