using sed on binary should also work (content is one big line?) [...] but I am not sure if thp's command [...] will work. Exchanging (hex editing) a binary and changing lengths is dangerous.