Consolidated and refactored FileUtilities