Added custom validator for UTF-8 strings.