Escapes $ in property names for safe insertion into MongoDB