Media type encoding.

Encode context for target specified media format.