use newest API in NetHttp transport (still 1.9 compatible).
raise an exception when URL invalid in Net::Http. this is a common error when people forget to prepend http:// and prevents them from having to debug "undefined method `request_uri' .