Provide a default mime-type for files created by filename.
Fixes #4355.
Merge pull request #4361 from ringmaster/fix_4355

Send mime-type for new files