Bugfix for Router#url() when the url contains an extension.