The key-value pairs in the list need to be separated by a space as well. One easy way to do this is just push keys and values (`kv.push(escape(k)); kv.push(escape(identification[k]));`) in order onto an array and then just do `cmd += kv.join(' ');` at the end.