Fix off-by-one error: 0x00 is valid AppCode.