Better fix for escaping filenames.

Now allows for things like backticks and quotes in the filename.