Added autodetection for xhtml filetype