+ slightly improve the parsing of the CHARSET, i.e. only do it if the string contains the explicit string "CHARSET"

Signed-off-by: Meng Lu <lumeng.dev@gmail.com>