Avoid disappearing URI path segments in join

Some versions of ::URI.join seem to do this:

    ::URI.join('http://localhost:8080/marmotta', 'moomin')
    # => 'http://localhost:8080/moomin'

This avoids that problem by being a bit less clever about gluing together urls.