Fix #394 -> use &#39; in EscapeMode.xhtml

Update unit test and fix code to ensure compatibility of HTML output with Internet Explorer 8