This ensures unicode and special characters in filenames are displayed correctly when generating diff patches, allowing proper file detection and revert operations
Co-authored-by: Claude <noreply@anthropic.com>