Fixing writing/removing a cookie with a name that contains characters where encodeURIComponent applies, closes #155.