Decode UTF-8 in javascript

This avoids any flash<->javascript stupidity (of which there is much)
and correctly handles incomplete utf-8 code points.