with open('dosyayolu/hesaplar.txt', encoding="utf-8") as f:
bu şekilde encoding parametresi belirttiniz mi ?