Fix detection of encoding from content.
Fix detection of encoding from content.

When an HTTP server doesn't provide the encoding with HTTP protocol, we
need to use heuristic to detect the encoding from the content.
ikus060/seosuite,ikus060/seosuite