Implement RawCodec that prevents encoding with any other codec