Fix encoding/decoding ofp switch configuration