new encoding of string before update