fix($browser): do not decode cookies that do not appear encoded

Closes #9211
Closes #9225