Improved route sanitation in action.php

Will eliminate errors from exploit attempts such as
"example.com/index.php?route=/proc/self/environ%00"