Rescue invalid byte sequences