Added support for conversion to TextReader