Decode URI params before store it in cookies