fix #9147 use StringBuilder instead of StringBuffer