Make IE8 JSON.stringify use utf-8.
Fix url encoding to handle unicode chars.