[FIXED JENKINS-17657] Get valid encoding from EncodingValidator.