Centralize TEI tree save method (and enable pretty_print)