Dart_NewStringFromUTF16 should ensure that the input utf16_array consists of valid values similar to how Dart_NewStringFromUTF8 validates the input.