Add magic encoding.
Update README.