Use StringBuilder instead of StringBuffer when no concurrent access

Replacement of #60
Ceki you are probably referring to this change (and several like it). It appends a char, not the string value of i + 1. It should be Integer.toString(i + 1)