Fix #827: Implement java.net.URI

There are several occurrences of this issue down below.