Factored out buffer() calls to a fixture.
Added esc decoder, unit test.