Improve the error message when the build encoding is wrong.