fix several XSS vulnerabilities in exception reporting and openlayers output format