Fixed a bug while not able to delete file with special chars.