PhyloXMLIO: choose a default text encoding for XML output on Py2/3

Based on @peterjc's phyloxml_py3 branch.

Should resolve Issue #368 and Issue #334.