Handle `UnicodeDecodeError` when loading config file
# What does this PR do?

This PR handles the `UnicodeDecodeError` mentioned in #13674, providing a better error message.

## Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@LysandreJik @sgugger 