Use open(url).read instead of URI.parse(url).read