Handle compressed content in both url fetching functions