Handles UTF-8 encoding