Force url parameter in visit method with to_s

The `visit` method takes a `url` as a parameter and in checking for special cases it performs `url.to_s`. However if no special cases apply, it does not perform `to_s`.

As someone who would like to send an arbitrary object capable of producing a url from `to_s` I feel adding consistency to the treatment of the parameter is beneficial.