add support for specifying encoding for std xhtml sites