Add Magic Encoding for 1.9 compat