Fix URL trimming
Merge pull request #399 from edpaget/fix-subject-location-urls

Fix URL trimming