fixed issue with malformed UTF-8 string;

Fixed issue with malformed UTF-8 string
Following if-statements will not be processed after this instruction.