Convert whitelist/blacklist to form-encoded data.