Fix the Repo commit and tree methods to work with unicode revs.

Signed-off-by: David Black <dblack@atlassian.com>