Japanese Characters Occasionally Corrupted When Using "Apply" Button

similar issue reported Weird ascii characters in prompt output from new claude-3.5 sonnet model

@admins pls take a look