fix for crash when image has unicode char in name