fix(localStorageDriver): fix odd length buffer serialization

Rebases and resolves #285