Usage:

irb(main):001:0> require 'rubygems'

> true

irb(main):002:0> require 'UniversalDetector'

> false

irb(main):003:0> p UniversalDetector::chardet('hello') “confidence”=>1.0

> nil