AnsibleError: unable to process as utf-8

How should ansible change values in a binary file? Template module is
for files, where placeholders should be replaced by variables or their
values...

I would think binary files should be transferred by the copy module
(or synchronize module).

Johannes