Handle empty/falsy charset in response
Merge pull request #1928 from kanongil/empty-charset

Handle empty or falsy charset in response