Replace deprecated atom_to_binary