We do a few things to try and get around this, like turning off magic_quotes_runtime and a couple other checks when retrieving the data, but it's still somewhat inconsistent depending on how the server is setup.