Remove StringBuilder reuse for uid creation. elastic#18181 …
This would be better handled by escape analysis.