Use StringBuilder in ASTPrinter.

And print to standard output, not to log.