Fix #680624 Exported files appear in browser as text.