charset print bugfix