encode one