'Copies a .strings file using iconv to reconvert the input into UTF-16.'

def _CopyStringsFile(self, source, dest):

    input_code = (self._DetectInputEncoding(source) or 'UTF-8')
    import CoreFoundation
    s = open(source, 'rb').read()
    d = CoreFoundation.CFDataCreate(None, s, len(s))
    (_, error) = CoreFoundation.CFPropertyListCreateFromXMLData(None, d, 0, None)
    if error:
        return
    fp = open(dest, 'wb')
    fp.write(s.decode(input_code).encode('UTF-16'))
    fp.close()
