Erlang term encoder and decoder for Akka