added FileUtil to resolve toNameConflict() in a standardized way