Replace StringBuffers with StringBuilders

Here is a trivial patch replacing the private StringBuffers with non synchronized StringBuilders. This doesn't affect the StringBuffers exposed by the public API.