Fix for improper use of innerHTML, a test name or an assertion message might contain characters that should be escaped in html.

In text/html a browser will not complain, but in application/xhtml+xml it will fail execution of the whole test suite (setting innerHTML will throw an Error).