Allow characters in db connection string

This will allow connection strings with problematic characters to be used, and therefore preventing parsing errors.