fire encoding