Convert from base10 to base62 and vice versa for shortened URLs.