Use fromCharCode with an array instead of in a loop

fromJavaString is called a lot and shows up in profiles