Normalize endpoint URLs during endpoint location.

Refactor URL normalization into a private function.
1 file changed