title: Unable to get a sha256 hash of a string
body: <p>I'm trying to get a hash of a string:</p>
  <pre class="lang-py prettyprint-override"><code>hs = hashlib.sha256(get_some_string()).hexdigest()
  </code></pre>
  <p>...but I get an error:</p>
  <blockquote>
  <p>TypeError: Unicode-objects must be encoded before hashing</p>
  </blockquote>