Fix UnicodeDecodeError for subversion and fix tests

Note: I am not sure what this pull request does for Python3 compatibility, but I already get errors using Python3 on current master.