Improve resource (character) decoding error reporting.