Fixed TemplateURL::ReplaceSearchTermsInURL for non-alphanumeric terms.

Currently the TemplateURL::ReplaceSearchTermsInURL function escapes characters differently than the TemplateURL::HandleReplacements function does, and ignores search engine’s input encoding (which causes incorrect results when the input encoding != "UTF-8"). This patch fixes it up.

[email protected]

Review URL: https://codereview.chromium.org/1093833002

Cr-Commit-Position: refs/heads/master@{#326017}
2 files changed