Fix exporting files with newlines in the title