Encode a value to be passed in forking a process and then decoded and used.