fix url encoding problem