fix #1 by replace `String.prototype.search` with `String.prototype.indexOf`
Merge pull request #2 from weilao/fix/filename-with-metacharacter

fix #1 by replace `String.prototype.search` with `String.prototype.index...