Set correct mime type on new documents