fix some hash -> filename encoding code not using the right byte for the first character of the non-directory part
better error output for POST test failures
fix ruby 2.0 compatibility in some replication tests, need to read the fixture files in binary mode