support nil charset
Merge pull request #831 from zendesk/grosser/nil-encoding

Bug: support nil charset, fallback to binary