Address some comments. Explicitly set the encoding for git rev-parse. Ensure that set_cwd is passed in unicode, and if for some reason that does not happen decode it. Add some tests and modify some tests to test the unicodeness