Don't need all the complicated buffer stuff for simple encoding
Removed strange spelling of []byte{}

(which really could be nil in most cases)