Fixed pull request #544
Changed #528 a bit and added documentation. The charset option now affects all text/* files, not only calls where mimetype
guessing was used.