resolved the url encoding issue