Improved logging for "charset".