fix #3732: log error when "unsafe" file format is used