encoding: ensure Buffer is move constructible and assignable

refs #2234

Change-Id: Ic16914eff91bcbae89b6a66c5870a57086d9511a