Add encodeLabels configure

Please, review and approval.
Thanks
Merge pull request #707 from yiidevelop/patch-2

Add encodeLabels configure