[Issue #11] Fixed encoding of local cache data