text: Title: Setting `PYTHONWARNDEFAULTENCODING` causes warnings
  Body: If environment variable PYTHONWARNDEFAULTENCODING is set (and at least when running on MacOS), `_get_python_system_encoding()`  from `robot/utils/encodingsniffer.py` in triggers following warning;
  
  ```
  /Users/rasjani/src/duunit/energy-meter/venv/lib/python3.11/site-packages/robot/utils/encodingsniffer.py:59: EncodingWarning: UTF-8 Mode affects locale.getpreferredencoding(). Consider locale.getencoding() instead.
    return locale.getpreferredencoding(False)
  ```
  
  In this example, all i did was `import Browser` in the  python repl. 
  
  