Improve specification of encoding key