Added version detection, and hopefully, working code for transcoding file names. Needs testing.