Added unicode support

If the url names where in unicode, they would not be included in the generated javascript. This should fix that.