CSV parser, customized after the wonderful OstermillerUtils.