Issue: #784.  Thanks to Alan for the patch.  See topic: http://dev.exiv2.org/boards/3/topics/1847

git-svn-id: svn://dev.exiv2.org/svn@3384 b7c8b350-86e7-0310-a4b4-de8f6a8f16a3