fixed UTF-8 encoding verification