replace invalid characters in layer list name.