public static String correctFileName(String f){
  f=f.replace('\\','/');
  if (f.startsWith("/")) {
    f=f.substring(1);
  }
  return f;
}

public static String correctFileName ( String f ) { f = f . replace ( '\\' , '/' ) ; if ( f . startsWith ( "/" ) ) { f = f . substring ( 1 ) ; } return f ; }
fix the file name , replacing backslash with slash .
