pass ids through encodeURIComponent when turning them into urls
Merge pull request #2351 from calvinmetcalf/encode-uri

encode uri components