Fix next url encoding