Add detect_encoding() function and adapt docs

Depends on https://github.com/nolta/ICU.jl/pull/9.

I had to cheat a little in the examples because with only the first word encoding detection was really poor, which would have been quite ridiculous. OTOH it's pretty good with just a few more words, and the typical use case is more about large files.