code: public static String readContentAsString(URL url, String encoding) {
          try {
              return readContentAsString(url.openStream(), encoding);
          } catch (IOException e) {
              throw E.ioException(e);
          }
      }
docs: Read file content to a String
  
  @param url
  The url resource to read
  @param encoding
  encoding used to read the file into string content
  @return The String content