Handle unicode image paths gracefully