Fixes Issue #243

https://github.com/couchbase/couchbase-lite-android/issues/243
Issue #243 - make more robust w/ respect to canonicalization

https://github.com/couchbase/couchbase-lite-android/issues/243