Use `\x00` instead of `\0` as it’s safer

See #2 for more information.
Remove unused `length` variables