Adding error chan to API

So that the caller can see the error returned by the underlying reader
when the string channel is closed (usually this will be an io.EOF).