String decoder reads from a stream.