fixed mb_string check problem in Validator