fix curl query string