bson en/decoder & chunkwriter