Reduce memory allocation

Because the normalized string length in bytes is less than or equal to
the original string length in bytes. It is confirmed by
tool/dump-difference.rb.