Process multibyte/UTF-8 characters properly