Sanitize multibyte UTF-8 input for database update