Fixed bug in WriteM3UPlaylistFile