LF-7124: Ensuring proper encoding of non-7bit characters.