More utf-8 handling for images