fix #20122: Fix Windows XP regression with save, export, and file extension