Fix url unquoting and remove debug output