Fixed deprecated code atom_to_binary and binary_to_atom

These fixes allow compilation with erlang 17.1 and elixir 0.14.2-dev.

Replaced atom_to_binary and binary_to_atom with their erlang counterparts.