support trailing shashes in URLs