Add validation of encoding-mode/encoding interop

Signed-off-by: Anton Lofgren <alofgren@op5.com>