put in the modified html size
something is wrong with encoding, and don't convert non-html docs to html