title: Ascii codec can't encode character
body: <p>I'm running a Flask web service, with text-input, but now I have the problem that the text-input sometimes consists of characters that are not included in the ASCII-character set (Example of error: "(Error: no text provided) 'ascii' codec can't encode character u'\u2019' in position 20)") </p>
  
  <p>My code for the Flask web service looks (somewhat) like this:</p>
  
  <pre><code>class Classname(Resource):
      def __init__(self):
         self.reqparse = reqparse.RequestParser()
         self.reqparse.add_argument('text', type=str, required=True, help='Error: no text provided')
         super(Classname,self).__init__()
  
      def post(self):
         args = self.reqparse.parse_args()
         text = args['text']
         return resultOfSomeFunction(text)
  </code></pre>
  
  <p>I already tried to turning the ascii-string into unicode, but that didn't work (error: 'unicode' object is not callable). I also tried to add: </p>
  
  <pre><code>text = re.sub(r'[^\x00-\x7f]',r' ',text)
  </code></pre>
  
  <p>after the rule </p>
  
  <pre><code>text = args['text']
  </code></pre>
  
  <p>but that also gave me the same error ('ascii' codec can't encode character). </p>
  
  <p>How can I solve this?</p>