Workaround for ENT_XML1 missing in PHP < 5.4