Change encoding and decoding dir names