changed iolist_to_binary to iodata_to_binary