gh-159739: Handle interpreter configuration encoding errors (#159747)

Propagate UTF-8 conversion errors before copying a string configuration
value.
2 files changed