Add support for detecting content-type charset