Your life would be easier if you use the excellent CPAN module
HTML::Entities, since it handles a lot of the entity substitution issues. The strict issue probably is a poor installation, you could reinstall ActivePerl or try Strawberry Perl on windoze ;-).
HTH,
SSF