Made Resource#identifier encode the resource id using the protocol