Added some utility methods to FileUtil and IoUtil.