Fix M3U parsing

Thanks to André Merboldt for the report.