encode cookieName into cookie content

fixes #35

@benadida r?