Modify file utilities to use File as param instead file name to work
better for Android file access rules.