Fix encoding uncommon types
Merge pull request #249 from getsentry/fix-248

Fix encoding uncommon types

Close #248