Is `bson_encode()` missing here, or is that being covered by a separate PR.

I noticed that while the decoding looks to be implemented, key pieces of encoding aren't in the C++ files below.