fixed charset loop