Adds encoding header

...used magic_encoding