ensure that sanitized urls do not end with a slash