Addressable is a replacement for the URI implementation that is part of Ruby's standard library. It more closely conforms to the relevant RFCs and adds support for IRIs and URI templates. Project Page GitHub Page API Specifications Code Coverage You know what to do: sudo gem install addressable Works best if libidn and the idn gem are installed.