Shorten mongodb IDs for URLs using base62 encoding.