Implement byteToCharStream and charToLineStream.
Test case for byteToCharStream and charToLineStream.