Changed style of encoding definition.
Merge pull request #126 from gmist/encoding_define

Changed style of encode definition