Remove string argument of TextWriter factory func

Let the users decide for themselves how to create the textwriter, without sending in a
default file name.