diff --git a/core/modules/parsers/htmlparser.js b/core/modules/parsers/htmlparser.js
index a42a22753..4a47c6520 100644
--- a/core/modules/parsers/htmlparser.js
+++ b/core/modules/parsers/htmlparser.js
@@ -17,7 +17,7 @@ var HtmlParser = function(type,text,options) {
if(options._canonical_uri) {
src = options._canonical_uri;
} else if(text) {
- src = "data:text/html," + encodeURIComponent(text);
+ src = "data:text/html;charset=utf-8," + encodeURIComponent(text);
}
this.tree = [{
type: "element",