Encode the room id.