Can we switch this to `.encode(errors='replace')` please?