remove unneeded '?' to an otherwise empty query string