Improved the handling of XXE/Billion laughs exploits