Allocate less when decoding string.