fix for files with extrange characters in metadata