I have a very simple python script that should scan a text file, which contains lines formatted as id=\'value\' and put them into a dict.
Providing these parameters resolved my issue:
with open('tomorrow.txt', mode='w', encoding='UTF-8', errors='strict', buffering=1) as file: file.write(result)