Passing a newly created string buffer to io.write raises an error because the lj_strfmt_wstrnum call in io_file_write returns NULL: ...