0a7fe7ad57
This will help to avoid truncating a UTF-8 string in the middle of a code point, producing an invalid UTF-8 result.