Thanks for the feedback.
http://gwt-code-reviews.appspot.com/516801/diff/1/4 File user/super/com/google/gwt/emul/java/lang/String.java (right): http://gwt-code-reviews.appspot.com/516801/diff/1/4#newcode458 user/super/com/google/gwt/emul/java/lang/String.java:458: int n = str.length(); Are you sure that is guaranteed to be UTF8? I would expect it to be whatever encoding the host page was in. Maybe that is the right behavior for getBytes(), but here I think we have to guarantee that it is UTF8. Regarding getting the bytes, I suspect that you can do something like str.split('') and then apply some function to the resulting array, but I am not really sure how that can be faster. http://gwt-code-reviews.appspot.com/516801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
