yl - add magic_encoding