title: botocore.excceptions.ClientError: An error occurred (InvalidTextEncoding) when calling the SelectObjectContent operation
body: <p>while executing below code through python</p>
  
  <pre><code>response= S3.select_object_content(Bucket=S3_bucket_name,Key=S3_file_Key,ExpressionType='SQL', Expression="select count(*) from s3object", InputSerialization={'CSV': {"FileHeaderInfo": header_usage},'CompressionType':compressformat}, OutputSerialization={'CSV': {}},)
  </code></pre>
  
  <p>I am getting error like</p>
  
  <p>Traceback (most recent call last):</p>
  
  <pre><code>  File OutputSerialization={'CSV': {}},)
    File "/usr/local/lib/python2.7/site-packages/botocore/client.py", line 320, in _api_call
      return self._make_api_call(operation_name, kwargs)
    File "/usr/local/lib/python2.7/site-packages/botocore/client.py", line 623, in _make_api_call
      raise error_class(parsed_response, operation_name)
  
  **ClientError: An error occurred (InvalidTextEncoding) when calling the SelectObjectContent operation: UTF-8 encoding is required. The text encoding error was found near byte 49,152.**
  </code></pre>
  
  <p>I searched for Invalid text Encoding in boto3 but couldn't found.
  Can you please help me to check this?</p>
  
  <p>Thanks in advance</p>