Escape non-ASCII symbols correctly
Merge pull request #1 from mathiasbynens/escape

Escape non-ASCII symbols correctly.

Thanks to mathiasbynens for this PR.