Fix #1595 : Export document with its title returns a document named with its filename
Merge pull request #814 from romainneutron/fix-1595

[3.8] Fix #1595 : Export document with its title returns a document named with its filename