Clean up messy path before matching a request.

Try to clean up messy path (too many slashes for now) in the path before
applying the Match.