Fixed cleaning for long request arrays in routing and decoding with magic quotes on, closes #684 and closes #685
merge 209d7fb381e515e313fc1ccf1e0ed2c87c746dd8