status: fix handling of filenames with special prefixes

Fix libgit2/libgit2sharp#379
Merge pull request #1462 from yorah/fix/libgit2sharp-issue-379

status: fix handling of filenames with special prefixes