Parse MongoDB connection string properly.