var2xml: encoding options is not depends on xmldec and vise versa