Using erl_iolist_length instead of strlen