fix(log): encode warning mesg (refs #4786)