bugfix charset error from cli