do url encoding when sending requests