@SneakyThrows
    public String encodePathSegment(String segment) {
        return ENCODER.escape(segment);
    }
Universal, non case-sensitive, protocol-agnostic URL pattern
storage/src/main/java/com/epam/aidial/core/storage/util/UrlUtil.java