LF-7124: Ensuring proper encoding of non-7bit characters.
Merge pull request #1 from jaklaassen/encoding-fix-7124

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