change target encoding

* Before: replace when encoding is utf-16.
* After: replace whenever.