Refactor remote revision resource read

Since the remote revision hash is always stored and retrieved as
binary, there is no need to check if it's a string.