<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def saveFileEnc(self, filename, encoding):
 """Dump an XML document, converting it to the given encoding """

        ret = libxml2mod.xmlSaveFileEnc(filename, self._o, encoding)
        return ret