just read the reasons for the rejection: IMHO it is actually not useful to log something available only with debugging.
While UTF-8 sounds reasonable (my fault!), multilang was already an issue before touching that code with my proposal, 'cause my Activity name was longer then VARCHAR(40) i.e. discovered by accident. What about removing that logging instead of addressing a correct substring?
Waiting for guidelines,