Fix #827: Implement java.net.URI

You forgot to compare `rel` to itself.