Add encoding handling to DOMDocument->loadHTML()