Fix UTF-8 handling for translated attributes