Fixed the validation message on invalid character failure to be the
correct error message.