Changed deprecated iolist_to_binary to iodata_to_binary