Fix URI resolution for Rfc1808Example* tests

OpenJDK URI resolution is written according to RFC 2196 reference
implementation. However it is flawed and cannot pass its own examples.
We fix this by taking some logic from RFC 3986 reference implementation
and applying them on the RFC 2196 code path.

Bug: 25897693
Change-Id: I0d581fda7359886ec5821857bb964d999f00ea46
1 file changed