Fixing encoding of string file types