Add UTF-8 handling functions