Don't blow up on invalid UTF-16 sequences.

Heap dumps sometimes contain junk data. If an incoming string has stray
high or low surrogates, we'll just send those to the browser directly
and let it handle the mess.