Replace bad chars for all OSes