Revert "ToJSON for MongoDB keys should be text, not binary"

This reverts commit 3b219aefafe2688c34f3e23d0481fe9883651af5.