Improved URI handling of repo names

Added test to reproduce problem and added Addressable gem for
improved parsing of URLs.

Closes GH-108