Fixed parsing of write concern option in URL

The issue was introduced in 927692e and a test added in #1191.