Fix multiple encoded URLs

My tests seem to be conclusive on various funky URLs.

Known *feature*: doesn't work with IDN urls.