Fix queryString/setParam for URL that end (&|?)flag