fix DOMDocument::loadHTML character corruption problem