truncate-utf8-bytes efficiently truncates UTF-8 encoded strings to a specified byte length. It ensures that the output string remains valid UTF-8 by only cutting off characters at valid code point boundaries. Useful when dealing with storage or transmission limits where byte length is crucial but corrupting multi-byte characters is undesirable. Prevents broken characters and maintains data integrity while adhering to byte constraints. Ideal for scenarios like database field limitations or API restrictions.