(PDB-2256) Fix terminus bug with large binary catalog data
The terminus includes code to help users determine the source of data that cannot be converted to UTF-8. There are several sources of this, but one is having an incorrect (or known) character set for portions of the catalog. When this invalid character data is large, it would cause the terminus to hang trying to include debugging information. This patch changes the terminus to only look for the first instance of bad data. It will also avoid doing the extra calculations needed for the error context unless debug mode is enabled. When not in debug mode there should be no impact on performance.
Showing with 45 additions and 68 deletions