Merge r1685345, r1685347, r1685349 and r1685350 from trunk. core: Allow spaces after chunk-size for compatibility with implementations using a pre-filled buffer. Submitted by: ylavic, trawick Reviewed by: ylavic, wrowe, minfrin