Users shouldn't see any leading or trailing spaces in URLs

[Finishes #44957277]