Add urlencode of db name in links

Database names like test-0ea7dc82592910cb7bcc9f2212e069de-2012-10-01T02:43:32+00:00
were causing db not found errors.