use scala.collection.mutable.StringBuilder

StringBuffer is a legacy/synchronized Java-builder. s.c.m.StringBuilder should perform slightly better.