code: public static URL correct(final File file) throws MalformedURLException {
          if (file == null) {
              throw new MalformedURLException("The url is null");
          }
          return new URL(correct(file.toURI().toString(), true));
      }
docs: Corrects the file to URL.
  
  @param file
  The file to be corrected. If null will throw
  MalformedURLException.
  @return a corrected URL. Never null.
  @exception MalformedURLException
  when the argument is null.