title: Ruby encoding - replace invalid encoding?
body: <p>I think this piece of code replaces invalid UTF-8 characters with blank strings:</p>
  
  <pre><code>title = title.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')
  </code></pre>
  
  <p>What is the second argument <code>'binary'</code> for? Is it necessary?</p>