node register: retain comments, reject non-ascii configuration templates