fix agents URLs to allow extensions