playlist catalog: improve UTF-8 BOM handling. correct length of array passed to creat...