Fix extra-encoding in edit form

resolves #260 and theodi/shared#211
handle nil fields
Merge pull request #261 from theodi/fix-encoding-in-edit-form

Fix extra-encoding in edit form