Trim URL on submit when adding manifests or URLs, fixes 178
(cherry picked from commit af253a5436cb0d63565a7de9b85a5333cf77c430)
Merge remote-tracking branch 'upstream/master'