Remove url.quote() on the marathon host, as this function is intended for quoting only the path section of the URL.