Fix bug where truncated? would erroneously change after the first iteration
encode! is called on data, causing all Unicode characters to be converted into UTF-8 and thus causing an invalid comparison between characters and bytes.
encode! is called on data, causing all Unicode characters to be converted into UTF-8 and thus causing an invalid comparison between characters and bytes.