Encode documents using utf-8. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23364 https://bugzilla.mozilla.org/show_bug.cgi?id=918771