Reference

bson_utf8_validate(3) on Linux

The text 90af7d6d9dce, as Debian 9 (Stretch) shipped it.

Validates that the content within utf8 is valid UTF-8. If allow_null is true, then embedded NULL bytes are allowed ( ).

bson_utf8_validate(3) on Linux now