title: how to encode/decode escape sequence characters in python
body: <p>how to encode/decode escape sequence character '\x13' in python into a character that is valid in a  RSS or XML. </p>
  
  <p>use case is, I am getting data from arbitrary sources and making a RSS feed for that data. The data source sometimes have escape sequence character which is breaking my RSS feed.</p>
  
  <p>So how can I sanitize the input data with  escape sequence character.   </p>