make sure generated url is properly encoded
(fixes navigation on OS X)