Use an URL object when fetching icons

Change-Id: I3a452f2cc0008afe763d7b83871793017c7507a8