Added test and fix for cookie decoding issue

A new test to check if the cookie value is correctly decoded on reading
from Request.Cookies and a fix for the existing issue the test
highlights.