fix possible problematic chars