(#1210) - Fix attachments in websql/Safari

Fixes problems we encounter with unexpected
encoding coercions for non-text attachment
data.
begin work on #1172
#1172 w00t, tests are passing in websql