Fix bytestring in make_filename_hash (py3 compat)