Remove potentially incorrect trailing slash