Unicode and string truncation support