Update connection string parser to support ssl=prefer

This is needed when upgrading a MongoDB cluster from non-ssl to ssl
without a downtime.