[BUGFIX] Use charset when formatting
Merge pull request #553 from hmspl/conv

[BUGFIX] Use charset when formatting