Fix: string length issue

This addresses #385.
You _still_ have to allocate memory for the termination character. Removing `++len` is fine, but you have to adjust the `calloc` call then.