public static String relativizeFileName(String file, String rootpath) {
    { boolean absoluteP = Native.stringSearch(file, rootpath, 0) == 0;

      if (absoluteP) {
        return (Native.string_subsequence(file, rootpath.length(), Stella.NULL_INTEGER));
      }
      else {
        return (file);
      }
    }
  }