Replace StringBuffers with StringBuilders fixes #285