serialize a form to urlencoded string.