Escape MongoDB keys for characters . and $