Handle encoding more "properly" (use the actual encoding of the html instead of stripping non-ascii).