[BUGFIX] Use charset when formatting