Fix url parsing (query-to module)