pack the encoded data when returning single byte