tweak encoding spec