Buffer: Force allocation for zero-length strings.

Closes #652