Actually encode url properly