remove trailing slashes from URLs