Fixed encode type
Merge pull request #1 from Skoryts/dev

Fixed encode type