fixed bug with file name containing special characters