Encode and decode parameters for Garðr iframe