fix url encoding issue