Make some FileUtils methods more CharSource-friendly