Encode JSON strings in config window URL