Remove trailing slashes from URLs