[COOK-4559] Remove invalid UTF-8 characters.