fix panic in encoding unexported fields
Merge pull request #13 from keks/unexported

fix panic in encoding unexported fields