Fixed bug that caused crashes if track names contained invalid path characters