Replace special characters from a text file