Transform list of unicode chars in templater

Since OTP 17 strings read from a file are by default parsed as a list of
unicode characters.
If such a list contains a non-ascii character (unicode > 255) then a
call to erlang:list_to_binary/1 fails.
This commit converts unicode list of chars to binary via unicode module
if ran against OTP >= 17.
Okay, in that case, either make it a local fun with a descriptive name or add an informative comment.