base30 convertor fix for ruby 1.9