fixed botched regex
fixed php  with respect to application/x-www-form-urlencoded