fixed issue with malformed UTF-8 string;