fixes for negative char sets