Fixing serialization of surrogate pairs in strings.