My mongodb connection string looks as below and it is using a special character @ in the password.
@
"mongodb://myuser:@pass1@abc.com:27017/db1?ss