Changed to a PHP-only variant of HTTP chunk decoding.