Expose .encode(buffer) as an export
1.1.0