Remove unused import; Use iolist_to_binary from the erlang module