Ensure UTF-8 mode