Short-term fixes for non-ASCII in JavaScript

This doesn't resolve the big questions of how Servo will represent strings; it's just about doing the conversion correctly for our existing types.