fixing issue with leading slashes on URIs