Fix for unicode issues with image files