Convert URL instance before passing to requests