Refactoring courtesy of pair programming with @marksim

Refactored Buff::Encode internals to be more intention revealing.
Small refactor in update_spec.rb