Merge changes I4eeed196,I80f9bc4e

* changes:
  Add test coverage for PrintStream autoflushing behavior.
  Fix PrintStream ctor ignoring Charset parameter.