ASCII encoding for streams