Escape .'s in file names when replacing text

Want it to match on actual dots, not any character. Ran into an issue with
"application.js" matching on "application/json" and breaking AJAX requests for
JSON resources.
Merge pull request #2 from wegowise/master

Escape .'s in file names when replacing text