fixed a bug in opening files with non-utf8 locales in exiv2.cc