StringEncoding: resize on need