Pass document character encoding to html validator wrapper