PiCarX - grayscale_calibration.py fails with "'charmap' codec can't encode ..."

Can you please help me resolve this error when running the grayscale_calibration.py module.

‘charmap’ codec can’t encode characters in position 8-45: character maps to <‘undefined’>

Thanks!