Attempts to guess and then force encoding of HTML documents