Bugfix & compatibility enhancement

 * Fixed compatibility with PHP 5.2 which doesn't support late static binding
 * To force DOMDocument load by UTF-8 (dirty fix)
 * Remove redundant libxml error