swap \n for \000, update len check, when reading receive-pack input
Merge pull request #79 from compressed/null_handling

swap \n for \000, update len check, when reading receive-pack input