Generate a properly encoded url.
(Fixes navigation when method has multiple parameters.)