remove trailing slash from URLs