Fix functions deprecated in Elixir 0.12

In Elixir 0.12 binary_to_list/1 list_to_binary/1 and pid_to_list/1 have been deprecated.  Therefore I changed these to use the Erlang functions.