Added custom encodeLabel attributes of the CMenu items

Fixes issue #3027