class UriUtils {

    public static String convertPathCharsFromLink(String path) {
        try {
            String uriPath = (new URI(path)).getPath();
            return trimPathSlashes(uriPath).replace(URI_PATH_CHAR_CONST, '-');
        } catch (URISyntaxException ex) {
            return null;
        }
    }

    private  UriUtils();

}