Yes, and no. "Magic Quotes" automagically encodes some data, depending on its setting.
Sounds like a variation in the "magic_quotes" setting of the two environments. You may need to look into urlencode(), addslashes(), etc. as you mentioned.
Just a guess,
dalecosp