Fixed URL parsing of replsets