add encode_query argument for Request