[CDE-239] Can't open or edit resource files
	- added IF clause to safeguard against undefined var
Merge pull request #158 from pedrofvteixeira/CDE-239

[CDE-239] Can't open or edit resource files
BISERVER-11486 - cdf plugin updates for encoding/decoding/reserved chars
  - Encoding mechanism in pen-shims
Merge pull request #159 from afrjorge/BISERVER-11486

BISERVER-11486 - cdf plugin updates for encoding/decoding/reserved chars