correctly encode paths when calling svn functions