Fixes minor bug if URI starts with multiple slashes