Decode output of 'git ls-files'

Fixes #1273.

Yes. I wanted to limit the change first. I will see if it is safe.