fix for bug #69076, fix handling of URLs with lone '?' as last character