Convert encoding of documents in ArticleEnhancer

I noticed wrong encodings when using ArticleEnhancer. This patch tries to solve it. It detects encoding in the header of the document response and does the appropriate conversion.