I think we probably normalize by removing any trailing slash. That way when you explode it by path separator you don't wind up with an empty component