Change AntlrInputStream to use TextReader instead of StreamReader.