Patch to send content type application/xhtml+xml to the browser when appropriate.