class UriEncoding {

    public static String encodePathSegment(final String pathSegment) {
        requireNonNull(pathSegment);

        return encodeRFC3986UriComponent(pathSegment, ALLOWED_IN_PATH_SEGMENT);
    }

}