envato/exiv2 — pull request #4 by jgraichen (2012-02-23 23:40:15+00:00)
Title: Force encoding in each and add Ruby 1.8 compatibility

Unfortunately, force_encoding broke Ruby 1.8 compatibility. It also is not applied when calling each directly.

I've moved force_encoding into the each method and check if it is available. On Ruby 1.8 it will not be called, but adjusted specs pass nevertheless (mri-1.8.7, ree-1.8.7, mri-1.9.3).