Bugfix & compatibility enhancement

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