cookie: b64encode asks for string