Add URI::URL as a prereq and use it.

This should fix RT#99003
https://rt.cpan.org/Ticket/Display.html?id=99003