This function takes the following parameters:
Description
The cookie to be URL encoded.
The buffer to put the encoded cookie.
The size of the buffer.