pub fn invalid_utf8(error: impl Display) -> String
The reason text_from_bytes stops a program whose bytes are not UTF-8: the decoder’s own account of where they stop being it.
text_from_bytes