Fixed bugs , typos

fixed bug with undefined _protocol, moved from protocol() to __construct() - it will be faster

`return UTF8::strlen($this->_body);` correctly than strlen()

`if (function_exists('http_build_cookie'))` [function_exists faster than extension_loaded](http://www.merkushin.com/function_exists-vs-extension_loaded/) sick! but true 0_o