                 {'S': 'alpha'},
                 {'S': 'beta'},
                 {'S': 'gamma'},
-                {'B': buffer},
+                {'B': encode(buffer)},
               ]},
               {L:[
                 {'N': '1'},
                 {'N': '2'},
                 {'N': '3'},
-                {'B': buffer},
+                {'B': encode(buffer)},
               ]},
               {L:[
                 {

            bar: L: [
              {S: 'string'},
              {N: '2'},
              {B: buffer}
              {BOOL: true}
            ]
      )

      wire = JSON.stringify(
        Item:
          foo:
            'BS': [encode(bar), encode(baz), encode(quux)]
      )
      output = Item:
        foo: set
