ruby gem for converting integers to baseN with given alphabets