bson: collection length in bson contains trailing \0.
bson: don't allow negative indexes from signed char.
bson: use escaped utf8 in json utf8 field.
bson: cleanup API check macros.
bson: add test for UTF-8 keywords and data in bson_as_json().
cbson: add cbson.as_json() to encode BSON buffer to MongoDB Extended JSON.