Don't convert url if it's already a URI

This can happen when the server does a redirect.