private static function nibbleLine(&$content, $eol = "\r\n")
    {
        $line = substr($content, 0, strpos($content, $eol));
        $content = substr($content, strlen($line)+2);
        return $line;
    }