Output-capping constants shared with tests.
1 million characters output cap (~1 MB UTF-16) to prevent OOM.