Fixed #22773 -- Forced templatize() to return unicode