Fix bad characters on Unix