Newick encoding