DOC improve encoding docs