client: additional check for charset

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>