Handle "?" character in parseQuery method