rchardet

Encoding detection for ruby.

As smart as your browser.  Open source.
