Fix #843: exception in taurusgui --new-gui with Py3
The default return value in py3 from lxml.etree.tostring() is bytes. This caused an exception (#843 (closed)) because we used it as unicode. Fix it by explicitly requesting unicode result from tostring. Also apply the same change in other usages of etree.tostring()