Escape unicode before leveldb binaryStore

Escape unicode before leveldb binaryStore to avoid png attachment test failures. 

This gets localstorage-down all green in Chrome with the exception of migration tests and 1 browser.worker.js test (create local db)!