Fixed issue with multiple slashes in endpoint URI