encoding_string<utf16> : improve surrogate pair check.