add support for writing encoded bytecode out to a file