while the docs says that : encoding protected String encoding The encoding to use when opening an InputStream. The encoding variable is set to null by default which results in the utilization of the system's default encoding. This is actually wrong : It should be "the encoding to use when opening an *OutputStream*".
Committed rev 427762 for trunk and 427763 for 1.2.x branch.