Switch to :erlang.binary_to_term

Change caused by Elixir 0.12.3 deprecation warning.