Use Addressable for parsing host if defined

Equivalent patch already accepted in https://github.com/newrelic/rpm_contrib/pull/40

Fixes parsing urls that URI does not support (non-ascii, amazonaws, etc)