encoding: Initialized uninitialized variables to resolve the build issue referenced

Refs: #1506

Change-Id: Icb650cf36cf50770ffec6db0f1253b1e42dadd96