fix stringbuffer appending for special numeric values