Fix #827: Implement java.net.URI

Coding style issues:
* Indentation is 4 spaces inside `(`
* The `)` starting the line is ugly, it should stay at the end of the previous line. Cut after `resolve(` instead.