Only encode form if not attachments