Do not encode undefined fields
Merge pull request #21 from oleksiyk/master

Do not encode undefined fields