I'm building an application that uses an elaborate API to fetch data from Youtube, and the data files are saved with the name of the corresponding video as the file name. However, my program is crashing because quite a lot of the videos on YouTube have characters in their titles that are illegal to use in file names under Windows.
Would URLEncoding the title of the video fix this problem?
If so, is this the best method to use, and what would be the best way to implement a URLEncode?
Thanks! :)