I've also submitted a patch to address this issue here: https://sourceforge.net/p/simplehtmldom/feature-requests/68/
Added feature to enable/disable htmlentity operations
The output doesn't match the input even when the input hasn't been modified