ResponseBase.calculateCharset returns a Charset