Force UTF-8
Always generate to the same target file, so it can be opened and auto reload by viewer
Allow no viewer setting
diagram_files now contain filename only, not file object