The new behavior is compatible with IE and Firefox.

R=tkent, keishi1
BUG=261846
TEST=Test string containing control character is not truncated

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168986 bbb929c8-8fbe-4397-9dbb-9b2b20218538