Enable PYTHONWARNDEFAULTENCODING=1
and fix violations
#10935
Merged
PYTHONWARNDEFAULTENCODING=1
and fix violations
#10935