The default encoding used when opening/reading/writing text files is dependent of the local configured encoding on the OS. We should then set the encoding to UTF-8 to prevent any encoding issues accross differents OSes synchronizations.
Note that this is not the case for str.encode() and bytes.decode() where UTF-8 is already the default encoding.