Fixed encoding problems with file names and branch names.
Was already merged in Bitbucket before import, marked as merged by the import user
Done by setting the server encoding to the encoding used by hg (as defined by the user in environment variables) and by correctly decoding extras. This commit specifically targets Windows systems.