global: Change StringBuilder to StringBuffer for compatibility with older Java versions.