...
...
    while True:
        radek = inFile.readline()
        if radek == '':
            break
        outFile.write(radek.decode('utf-8').replace(znakStary,znakNovy).encode('utf-8'))
...
...

