If there is non-ascii chars in the filename, diff parse failed.

Especially when it is the first commit of the repo, I just improve the regexps.