Using the ```hex()``` function in SQLite was the only way I could find to avoid UTF-8 coercion problems for blob data.  Sadly, it seems we may have well just used base64 strings instead of the native blob type; it's not doing us any favors.

I didn't find the ```hex()``` solution mentioned anywhere, so it's either a clever hack or something we should research more and try to replace.