safe: add method WriteString to Buffer
log/testing: use safe buffer in FakeLogger