add encoding.