make sure password and dsn are quoted to avoid parse errors for special character passwords (fixes issue #2458)