I have a function that throws URISyntaxException. Basically, the URI constructor throws this exception when the parameter violates RFC.
private String getCur