Grow a String or Buffer by twice the new length. This is a simple
approach and does not need a call to ceil. There is no more
any dependency on the math library.