Treat URLs as objects internally and accept URL objects instead of strings when creating a client.