replaced list_to_binary by String.to_char_list