Fixed segfault (removed superfluous NUL-byte insertion)