Fix read/parse/write tree/newick functions in treelib