Unicode: check encoding of files given to configure_file.

UTF-16 and UTF-32 files are rejected.
Merge topic 'configure_file-unicode' into next

121b8702 Unicode: check encoding of files given to configure_file.