`TextVars::text` is only 512 bytes and does not include string ending byte, and `sequencer_text_edit_paste_exec` uses a very simple truncation that didn't guarantee valid UTF-8 sequence at the end. This is now fixed by using `BLI_str_utf8_invalid_strip` after truncating the string. Pull Request: https://projects.blender.org/blender/blender/pulls/133416