Previously, constructing error messages with unsanitized input could fail because error message strings must be UTF-8.