Change to @mboelstra's method of preventing zero byte allocations