do not ignore text after an invalid character, ignore the character only