Fixed URL extraction for URLs starting with a ?