Deprecate encoding

The encoding isn't used when loading HTML, so shouldn't be used. But we shouldn't remove this as it will break apps, so deprecate it until the next major release.