add method for url encoding params for a get request