title: Ruby, delete null values of a string
body: <p><b>Example:</b></p>
  
  <pre><code>String test="hi\000\000\000"
  </code></pre>
  
  <p><b>Problem:</b>
  Some methods require a string to be without nulls, how can I delete all null values of a string?</p>
  
  <pre><code>.split("\000",1) gives me an error: 'force_encoding' method doesn't exist
  .gsub('\000','') does nothing
  </code></pre>