Adds tolerance for trailing-slashes.