add url encoding to url methods