title: stringByAddingPercentEscapesUsingEncoding was deprecated in 9.0 .How to do this?
body: <p>I'm a junior developer, and I got a code for this:</p>
  
  <pre><code>(NSString *)encodedStringFromObject:(id)object {
      return [[object description] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];    
  }
  </code></pre>
  
  <p>But in 9.0 have to use <code>stringByAddingPercentEncodingWithAllowedCharacters</code>.</p>
  
  <p>How Could I transfer this code ? 
  I need help, Thanks!</p>