Fix #1236: Implement java.io.PrintWriter.

Discovered in Harmony, then verified experimentally. It also seems to be a reasonable behavior, even though it's completely non encapsulated and non composable ...