Made OutputStringBuilder thread-safe