Revert "Encoding conversion doesn't seem to work"

This reverts commit f434c739096fe0b405bbb6ca35d0d69de5c735b7.
It works.
[ci skip]