CORE-3451: write text directly to a file when serializing NeXML trees as Newick