Decode output of 'git ls-files'

Fixes #1273.