Swap charade for chardet

Fixes #1800