Updated API for charset check in content type