Add encoding for rendered strings.