Erlang nif pickle encoder/decoder