Use Java StringBuilder instead of Scala wrapper where possible