change type of __hash to hex-encoded string