fix: newly created StringOutputStream was not null terminated

internal buffer ist now alloceted and filled with 0s.

Change-Id: I3b8a37a53bf2013d4fb6147515cbbefd58e52cfe