Specify characters allowed by base-n, works for any given base, convert from base-n to decimal, increment, decrement.