added url encoding