There is a variant of base64 suitable for use in URIs, which is easier than all that tedious mucking about with base62.<p><a href="http://en.wikipedia.org/wiki/Base64#URL_applications" rel="nofollow">http://en.wikipedia.org/wiki/Base64#URL_applications</a>