parseChunkDelimiter is now newline agnostic
Under Windows, newline is \r\n. Thus we were passing a chunk delimiter ending
with a remaining \r and the chunk was never recognized. That caused an
exception to be thrown when CodeReview is installed on a Windows server.
rtrim() happilly makes this function agnostic.
added two tests cases to make sure we do not choke anymore on this issue.
Fix
r94951