Refs #4831 I could not reproduce this bug. So maybe it is because Magic quotes runtime was on on your server running the proxy script?

could you please try to apply this patch to your piwik.php on proxy and tell me if you still have the issue?