Fixed cleaning for long request arrays in routing and decoding with magic quotes on, closes #608 and closes #609
merge 21e42def98e28b9d618c3027412548c9957a8c05