use encodeString