Use StringBuilder instead of StringBuffer when no concurrent access

Simple follow up of #52