Fix for the http parse stack trace from #4

There was a bug in the chunked encoding handling
when the segment boundary is between \r and \n. This
adds a test to show the issue and the code to fix it.