[client][managed][offline] allow underscore and hyphen in queryId