OTWO-3206: Fix utf-8 encoding issues for svn and git

This fixes encoding issues in svn repositories. I also fixes a particular use case for git repositories.