use addressable instead of standard ruby URI library