Removing trailing slashes for path in iointercept