code: public static String getText(URL url, String charset) throws IOException {
          BufferedReader reader = newReader(url, charset);
          return IOGroovyMethods.getText(reader);
      }
docs: Read the data from this URL and return it as a String.  The connection
  stream is closed before this method returns.
  
  @param url     URL to read content from
  @param charset opens the stream with a specified charset
  @return the text from that URL
  @throws IOException if an IOException occurs.
  @see java.net.URLConnection#getInputStream()
  @since 1.0