How to fix UnicodeEncodeError: 'charmap' codec can't encode characters in Python | DevErrors