RFC: allow nil payload when encoding

When encoding a payload, allow nil, as an empty payload. Allows running ```(remaining-bytes nil) ;; => 0```.