Error trying to call writep8
Hi,
I'm writing a discord bot and I want people to be able to convert Pico8 png files to p8 files.
I'm trying to call the writep8 capability directly.
I was hitting errors, adn I though it was to do with the format of my png files, which i was writing out from the discord bot, so I downloaded a pico8 png directly and am using it as a test.

Here's the code:
                    args = ["writep8", "C:\\Users\\Gamer\\Downloads\\pico8\\grapplicious-0.p8.png"]
                    tool.main(args)

I'm getting this error:

Ignoring exception in command pico8:
Traceback (most recent call last):
  File "C:\Users\Gamer\git\discord-bot-v1\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "C:\Users\Gamer\git\discord-bot-v1\admin\admin_commands.py", line 71, in pico8
    tool.main(args)
  File "C:\Users\Gamer\git\discord-bot-v1\pico8\tool.py", line 596, in main
    return args.func(args)
  File "C:\Users\Gamer\git\discord-bot-v1\pico8\tool.py", line 398, in do_writep8
    return process_game_files(args.filename, writep8, args=args)
  File "C:\Users\Gamer\git\discord-bot-v1\pico8\tool.py", line 268, in process_game_files
    procfunc(g, out_fname, args=args)
  File "C:\Users\Gamer\git\discord-bot-v1\pico8\tool.py", line 288, in writep8
    g.to_file(filename=out_fname)
  File "C:\Users\Gamer\git\discord-bot-v1\pico8\game\game.py", line 723, in to_file
    self.to_p8png_file(outfh, filename=filename, *args, **kwargs)
  File "C:\Users\Gamer\git\discord-bot-v1\pico8\game\game.py", line 689, in to_p8png_file
    code_bytes = self.get_bytes_from_code(b''.join(cart_lua))
  File "C:\Users\Gamer\git\discord-bot-v1\pico8\game\game.py", line 492, in get_bytes_from_code
    code_bytes = bytes(code, 'ascii')
TypeError: encoding without a string argument

This should work calling the code like this (as far as I can see) but it does not