Update FileUtils.java

put write to files into background thread.