don't not escape in BuildFormatString

it's not necessary and would cause double-escape bug(#17002)
Merge branch '4.0/not-escape-in-build-format-string' into 4.0-trunk