Remove double trailing slash on url generation

Mentioned in #9838

Currently this:
```
bar_path(host: 'example.com/')
```

Turns into `example.com//bar`

Which is not correct, this PR fixes that issue.

ATP actionpack cc @pixeltrix