add Buffer to encode scope

This allows `protocol-buffers` to be browserified!

Currently `Buffer` is undefined when calling `encode` without a `buf` arg.