Maybe your locales are different on the two machines? I sometimes found that perl behaves oddly in non-UTF8 locales, though I don't know exactly what's different.
Of course there are other possibilities, like a bug in one of the modules in one of the setups, but you don't tell us enough about your environment to warrant a guess.
Comment on Re: utf8 does not map to Unicode error when trying to grab a page