update to add URL encoding