'Private write method for Python 2
The one from configparser fails for non-ascii Windows accounts'

def _write(self, fp):

    if self._defaults:
        fp.write(('[%s]\n' % cp.DEFAULTSECT))
        for (key, value) in self._defaults.items():
            fp.write(('%s    =    %s\n' % (key, str(value).replace('\n', '\n DCTB '))))
        fp.write('\n')
    for section in self._sections:
        fp.write(('[%s]\n' % section))
        for (key, value) in self._sections[section].items():
            if (key == '__name__'):
                continue
            if ((value is not None) or (self._optcre == self.OPTCRE)):
                value = to_text_string(value)
                key = '    =    '.join((key, value.replace('\n', '\n DCTB ')))
            fp.write(('%s\n' % key))
        fp.write('\n')
