Temporary fix for mb_detect_encoding bug in domParser vendor class