Document.parseUtf8

void parseUtf8(string data, bool caseSensitive = false, bool strict = false)

Parses well-formed UTF-8 in loose mode (by default). Tries to correct tag soup, but does NOT try to correct bad character encodings.

They will still throw an exception.