Escape Mongo documents that have '$' or '.' in keys.