Value sanitization for input[type=text] should not truncate a value at control character

The new behavior is compatible with IE and Firefox.

R=tkent, keishi1
BUG=261846
TEST=automated

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

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