Use Addressable gem for parsing in URL

This is necessary to handle urls with non-ascii characters,
that are no longer filtered out thanks to previous hacks.
Eventually it will help to extend support to proper IRIs.