Add support for converting from git encoding to locale encoding