Simple string concatenation is very slow for large amounts of data.
Using stringbuilder vastly improves performance.