fixing image names with bad chars