Support playlists using UTF8 encoding without BOM.

This commit fixes #3605.