Fix argument for iolist_to_binary call