Decode output of 'git ls-files'

Fixes #1273.

It seems the issue is limited to `git ls-files`. It does not appear in `git log` and `git branch`.