WIP improve encoding docs

I added an example using `chardet`, but on short texts it seems to be getting the encoding wrong consistently. All three strings are Heinrich Heine quotes, in UTF-8, Latin-1 and UTF-16LE, respectively. `chardet` gets the first two wrong, thinking they're both Latin-2. For the second string, that doesn't matter. Fixes #2105.