Fix current build failures.

Fixes encoding errors raised on non-EN systems when a file cannot be parsed.