[Issue 9935] buffer overflow in UTF8StringValidate