Ensure attributes are present before forcing an encoding

Fixes #81
Update gemfiles
Merge pull request #84 from jmazzi/bugfix/missing_attribute

Skip field encodings when attributes are missing