const serializeForm = form => Array.from(new FormData(form), field => field.map(encodeURIComponent).join('=')).join('&');