SI-6803: do not use java.net.URI, even more so incorrectly.