with codecs.open(sourceFileName, 'r', 'your-source-encoding') as sourceFile:
    with codecs.open(targetFileName, 'w', 'utf-8') as targetFile:
        while True:
            contents = sourceFile.read(BLOCKSIZE)
if not contents:
    break
targetFile.write(contents)
How to convert a file to utf-8 in Python?