fix bad escape, and bad filename