If you encode it, remember to encode your values before building the querystring. If you try to urlencode after building the complete querystring, you'll end up encoding the '&' querystring-pair separator and the '=' too.
I try to create a simple OOP PHP that shows an error:
class_lib.php
<?php
class person {
var $name;
function __constructor($person_name){
echo "Initialize class";
}
function set_name($new_name){
$this->name($new_name);
} ...