A port of Perl's Unidecoder to Ruby.