I wonder if it would be possible to change
for (int j = 0; j < i; ++j)
result += (juce_wchar) (unsigned char) data[j];
into
result+=String(data);
?
If not, createStringFromData spends really long time if data is very large. This is a big problem when loading large image resources into the jucer on linux.