Fix issue 7159

Access or modify the default encoding for writable streams
Missing documentation ;)