Fix double slash that ends up in some URLs from get_host_url.

This is a patch from @mislav and should fix a Ruby 1.9.2 test failure.