Fixed hardcoded file extensions in FileUtil