SLING-760 - move escaping code to DefaultErrorHandlerServlet (and SlingMainServlet, but that's only used as a last resort IIUC) and add tests