PHP 5.3 compatibility

ENT_SUBSTITUTE flag doesn't exist for HP 5.3 and ENT_IGNORE seems to be sufficient