allow nil payload
Merge pull request #15 from paulbellamy/nil-remaining-bytes

RFC: allow nil payload when encoding