Fix for target files with unicode characters

When target file names for templates contains Unicode characters higher than 255, exported files names get broken.

From http://www.erlang.org/doc/apps/stdlib/unicode_usage.html , it seems that `iolist_to_list` can safely be replaced by `unicode:characters_to_binary` when dealing with unicode strings.