Fixes #4370: fileinfo extension is required for FileValidator.