in reply to The locale codeset (cp1252) isn't one that perl can decode

Encode's helpers are not being packaged by pp. You might get better results using use instead of require (depending on how pp works). Otherwise, you'll have to tell pp to include them explicitly. (Encode::Alias? Encode::Byte? Encode::Config?)