pub fn encode_bytes(bytes: &[u8], output: &mut Vec<u8>)
Encode bytes for keycode (escape 0xff, terminate with 0xffff)