Initialize encoding spec