Cuts content to at most capBytes UTF-8 bytes. Keeps the first 2 KB and the end, with [... <n> bytes cut ...] between them. Never splits a character.
content
capBytes
[... <n> bytes cut ...]
Cuts
contentto at mostcapBytesUTF-8 bytes. Keeps the first 2 KB and the end, with[... <n> bytes cut ...]between them. Never splits a character.