build Encoding