Add a helper for encoding JavaScript values into binary Buffers. The implemenetation is based on msgpack5 format and preserves JavaScript objects like Buffers and Dates, as opposed to (binary)JSON.