Fix the bug, make the previously added test pass.

1 job for 317809-fix-surrogate-characters in 5 minutes and 59 seconds (queued for 2 seconds)