Handle broken UTF-8 sequences