Added encodeURIComponent on parameters to PHP scripts.