title: How do I format this from str to byte-like object?
body: <p>Ahoy, I'm having trouble with decoding these filenames (They're encoded as base64). I know they need to be byte-like objects, but I can't for the life of me make it so. Please help, much love.</p>
  
  <pre><code>for filename in os.listdir('./Files'):
      name, typeId = base64.b64decode(filename.replace('.png', '')).split('_!_')
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>name, typeId = base64.b64decode(filename.replace('.png', '')).split('_!_')
  TypeError: a bytes-like object is required, not 'str'
  </code></pre>